<extend name="Public/base"/>
<block name="body">

  
<form class="J_ajaxForm" action="{:U('listorders')}" method="post">
    <div class="table_list">
       <table class="table table-striped table-bordered table-hover" >
        <thead>
          <tr>
          <th width="30"><label><input type="checkbox" class="check-all"></label></th>
          
            <th width="80" >ID</th>
            <th>名称</th>

            <th  >描述</th>
            
           
             <th >状态</th>
          
             <th >操作</th>
          </tr>
        </thead>
       <tbody>
       <volist name="list" id="vo">
       <tr>
       <td><input type="checkbox" class="ids"  name="ids[]" value="{$vo.id}" ></td>
     
       <td>{$vo.id}</td>
       <td>{$vo.name}</td>
      
       <td>{$vo.remark}</td>
        <td>   <if condition="$vo[id] neq '1'">
        <if condition="$vo[status] eq 1">
        <a data-toggle="tooltip" title="关闭"   href="{:U("changestatus",array("id"=>$vo['id']))}" class="ajax-switch"> <i class="icon-check-circle"></i></a>
         <else/>
        <a data-toggle="tooltip" title="开启"  href="{:U("changestatus",array("id"=>$vo['id']))}"  class="ajax-switch"><i class="icon-times-circle"></i></a>
         </if>
        
         
         </if>
         
         </td>
     
       <td>
       <a data-toggle="tooltip" title="" class="btn btn-xs btn-info tooltip-info" href="{:U('edit',array('id'=>$vo['id']))}" data-original-title="修改"><i class="icon-edit bigger-120"></i></a>
        <if condition="$vo[id] neq '1'">
       <a data-toggle="tooltip" title="" class="ajax-del btn btn-xs btn-danger	tooltip-danger" href="{:U('delete',array('id'=>$vo['id']))}" data-original-title="删除"><i class="icon-trash bigger-120"></i></a></if>
       
       </td>
       
       
       </tr>
       
       </volist>
       </tbody>
       
      </table>
    </div>
      <div class="pagination">{$Page}</div>
    <div class="form-actions">
    <button class="btn btn-primary ajax-post mr10" target-form="J_ajaxForm" type="submit"> 排序</button>
      <button class="btn btn-primary ajax-post confirm btn-danger mr10" data-subcheck="true" type="submit" url="{:U('delete')}" target-form="J_ajaxForm"   data-title="删除国家将同时删除所属所有城市,所有资源，您确定删除吗？">删除</button>
      
      </div>
  </form>


</block>
<block name="plugin-style">
<link rel="stylesheet" href="__CSS__/chosen.css" />
</block>

<block name="script">
		<script src="__JS__/chosen.jquery.min.js"></script>
	

<script type="text/javascript">
			jQuery(function($) {
				
			
				$(".chosen-select").chosen(); 
			
			
			
			
			});
		</script>
        </block>
